package com.wilson.integration.lease.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wilson.integration.lease.common.entity.BrowsingHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wilson.integration.lease.common.entity.vo.history.HistoryItemVO;

/**
* @author wilson
* @description 针对表【browsing_history(浏览历史)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface BrowsingHistoryService extends IService<BrowsingHistory> {

    /**
     * 获取浏览历史
     *
     * @param page
     * @param userId
     * @return
     */
    IPage<HistoryItemVO> pageHistoryItemByUserId(Page<HistoryItemVO> page, Long userId);

    /**
     * 保存浏览记录
     *
     * @param userId
     * @param roomId
     */
    void saveHistory(Long userId, Long roomId);
}
